package com.tedu.pojo;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages="com.tedu.pojo")
public class User {
	private String name;
	private Integer age;
	private UserA A;
	public User() {}
	
	public User(String name, Integer age, UserA a) {
		super();
		this.name = name;
		this.age = age;
		A = a;
	}

	public String getName() {
		return name;
	}
	public void setName1(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	
	public void setAge(Integer age) {
		this.age = age;
	}
	public UserA getA() {
		return A;
	}
	public void setA(UserA a) {
		A = a;
	}
	@Override
	public String toString() {
		return "User [name=" + name + ", age=" + age + ", A=" + A + "]";
	}
	
}
